package com.ywger.integration.config.restemplate;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author chenmeng
 * @date 2021-07-17 18:55
 * @desc
 */
@Component
@ConfigurationProperties(prefix = "application.http")
@Data
public class RestTemplateProperties {

    private int maxPerRoute = 200;

    private int maxTotal = 200;

    private int connectionTimeOut = 30000;

    private int connectionRequestTimeOut = 30000;

    private int readTimeOut = (60 * 1000);

    private int keepAliveTime = (60 * 1000);
}
